package com.aquan.map_jetpack.model.service

import com.aquan.map_jetpack.model.Network
import com.aquan.map_jetpack.model.entity.UserLoginResponse
import retrofit2.http.GET
import retrofit2.http.Query


interface LoginService {

    /**
     * 用户登录
     * */
    @GET("/api/Logins")
    suspend fun login(
        @Query("name") name: String,
        @Query("pwd") pwd: String
    ): UserLoginResponse

    companion object {
        fun instance(): LoginService {
            return Network.createService(LoginService::class.java)
        }
    }
}